package com.ceit.controller;


import com.ceit.service.PlateManegeService;
import com.ceit.util.JsonMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by cpc on 2017/5/25.
 * 生成报表
 */
@Controller
public class PlateManegeController {
    JsonMapper nonNullBinder = JsonMapper.nonEmptyMapper();
    @Autowired
    private PlateManegeService plateManegeService;

    @RequestMapping(value = "/test", method = RequestMethod.GET, produces = "application/json; charset=utf-8")
    public String feeCreateGet() {
        return "test";
    }

    @ResponseBody
    @RequestMapping(value = "/search", method = RequestMethod.POST, produces = "application/json; charset=utf-8")
    public String feeCreatePost(String token,String words) throws Exception {
        return nonNullBinder.toJson("");
    }
}